<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>IBroadcast | EasyGameFramework</title>
	<meta name="description" content="Documentation for EasyGameFramework">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header class="tsd-header">
	<div class="tsd-page-toolbar">
		<div class="container header-container">
			<div class="header-logo">
				<a href="../globals.html" class="title">
					<span class="egf-logo"></span>
				</a>
				</select>
			</div>
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Packages</a>
				</li>
				<li>
					<a href="../modules/broadcast.html">broadcast</a>
				</li>
				<li>
					<a href="../modules/broadcast.__global.html">__global</a>
				</li>
				<li>
					<a href="../modules/broadcast.__global.broadcast.html">broadcast</a>
				</li>
				<li>
					<a href="broadcast.__global.broadcast.ibroadcast.html">IBroadcast</a>
				</li>
			</ul>
			<span class="tsd-breadcrumb-current">Interface IBroadcast&lt;MsgKeyType, ValueType, ResultType&gt;</span>
			<div id="tsd-filter">
				<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
				<div class="tsd-filter-group">
					<input type="checkbox" id="tsd-filter-inherited" checked />
					<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
				</div>
			</div>
			<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-type-parameters">
				<h3>Type parameters</h3>
				<ul class="tsd-type-parameters">
					<li>
						<h4>MsgKeyType = <span class="tsd-signature-type">any</span></h4>
					</li>
					<li>
						<h4>ValueType = <span class="tsd-signature-type">any</span></h4>
					</li>
					<li>
						<h4>ResultType = <span class="tsd-signature-type">any</span></h4>
					</li>
				</ul>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">IBroadcast</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel">
				<h3>Implemented by</h3>
				<ul class="tsd-hierarchy">
					<li><a href="../classes/broadcast.broadcast-1.html" class="tsd-signature-type">Broadcast</a></li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#keys" class="tsd-kind-icon">keys</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="broadcast.__global.broadcast.ibroadcast.html#broadcast" class="tsd-kind-icon">broadcast</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#dispose" class="tsd-kind-icon">dispose</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#has" class="tsd-kind-icon">has</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#off" class="tsd-kind-icon">off</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#offall" class="tsd-kind-icon">off<wbr>All</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface"><a href="broadcast.__global.broadcast.ibroadcast.html#offallbycontext" class="tsd-kind-icon">off<wbr>All<wbr>ByContext</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="broadcast.__global.broadcast.ibroadcast.html#on" class="tsd-kind-icon">on</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="broadcast.__global.broadcast.ibroadcast.html#stickybroadcast" class="tsd-kind-icon">sticky<wbr>Broadcast</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter"><a href="broadcast.__global.broadcast.ibroadcast.html#value" class="tsd-kind-icon">value</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="keys" class="tsd-anchor"></a>
					<h3>keys</h3>
					<div class="tsd-signature tsd-kind-icon">keys<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MsgKeyType</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in packages/broadcast/src/globalDefines.ts:36</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>消息key</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="broadcast" class="tsd-anchor"></a>
					<h3>broadcast</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">broadcast&lt;keyType&gt;<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyType</span>, value<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span>, callback<span class="tsd-signature-symbol">?: </span><a href="../modules/broadcast.__global.broadcast.html#resultcallback" class="tsd-signature-type">ResultCallBack</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span>, persistence<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:80</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>广播</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>keyType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span> = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>key: <span class="tsd-signature-type">keyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>事件名</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> value: <span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>数据</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <a href="../modules/broadcast.__global.broadcast.html#resultcallback" class="tsd-signature-type">ResultCallBack</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>回调</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> persistence: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>是否持久化数据</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="dispose" class="tsd-anchor"></a>
					<h3>dispose</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:104</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>销毁广播系统</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="has" class="tsd-anchor"></a>
					<h3>has</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">has<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:54</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>有没有这个事件注册</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>key: <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="off" class="tsd-anchor"></a>
					<h3>off</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">off<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span>, listener<span class="tsd-signature-symbol">: </span><a href="../modules/broadcast.__global.broadcast.html#listener" class="tsd-signature-type">Listener</a>, context<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, onceOnly<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">this</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:72</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>注销监听</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>key: <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span></h5>
								</li>
								<li>
									<h5>listener: <a href="../modules/broadcast.__global.broadcast.html#listener" class="tsd-signature-type">Listener</a></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> context: <span class="tsd-signature-type">any</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> onceOnly: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="offall" class="tsd-anchor"></a>
					<h3>off<wbr>All</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">off<wbr>All<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:64</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>注销指定事件的所有监听</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> key: <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
					<a name="offallbycontext" class="tsd-anchor"></a>
					<h3>off<wbr>All<wbr>ByContext</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
						<li class="tsd-signature tsd-kind-icon">off<wbr>All<wbr>ByContext<span class="tsd-signature-symbol">(</span>context<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:59</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>注销同一个context的所有监听</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>context: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="on" class="tsd-anchor"></a>
					<h3>on</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">on&lt;keyType&gt;<span class="tsd-signature-symbol">(</span>handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol"> | </span><a href="broadcast.__global.broadcast.ilistenerhandler.html" class="tsd-signature-type">IListenerHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="broadcast.__global.broadcast.ilistenerhandler.html" class="tsd-signature-type">IListenerHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span>, listener<span class="tsd-signature-symbol">?: </span><a href="../modules/broadcast.__global.broadcast.html#listener" class="tsd-signature-type">Listener</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span>, context<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, once<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, args<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:46</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>注册事件，可以注册多个</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>keyType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span> = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>handler: <span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol"> | </span><a href="broadcast.__global.broadcast.ilistenerhandler.html" class="tsd-signature-type">IListenerHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="broadcast.__global.broadcast.ilistenerhandler.html" class="tsd-signature-type">IListenerHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> listener: <a href="../modules/broadcast.__global.broadcast.html#listener" class="tsd-signature-type">Listener</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>监听回调</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> context: <span class="tsd-signature-type">any</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>上下文</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> once: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>是否监听一次</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>透传参数</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="stickybroadcast" class="tsd-anchor"></a>
					<h3>sticky<wbr>Broadcast</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">sticky<wbr>Broadcast&lt;keyType&gt;<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyType</span>, value<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">broadcast.ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span>, callback<span class="tsd-signature-symbol">?: </span><a href="../modules/broadcast.__global.broadcast.html#resultcallback" class="tsd-signature-type">ResultCallBack</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span>, persistence<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:93</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>广播一条 指定 [key] 的粘性消息
										如果广播系统中没有注册该类型的接收者，本条信息将被滞留在系统中。一旦有该类型接收者被注册，本条消息将会被立即发送给接收者
									如果系统中已经注册有该类型的接收者，本条消息将会被立即发送给接收者。</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>keyType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span> = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>key: <span class="tsd-signature-type">keyType</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>消息类型</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> value: <span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">broadcast.ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>消息携带的数据。可以是任意类型或是null</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <a href="../modules/broadcast.__global.broadcast.html#resultcallback" class="tsd-signature-type">ResultCallBack</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ResultType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>能够收到接收器返回的消息</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> persistence: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>是否持久化消息类型。持久化的消息可以在任意时刻通过 broadcast.value(key) 获取当前消息的数据包。默认情况下，未持久化的消息类型在没有接收者的时候会被移除，而持久化的消息类型则不会。开发者可以通过 [clear] 函数来移除持久化的消息类型。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
					<a name="value" class="tsd-anchor"></a>
					<h3>value</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
						<li class="tsd-signature tsd-kind-icon">value&lt;keyType&gt;<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">broadcast.ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in packages/broadcast/src/globalDefines.ts:100</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>取值</p>
								</div>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>keyType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">MsgKeyType</span> = <span class="tsd-signature-type">any</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>key: <span class="tsd-signature-type">keyType</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">broadcast.ToAnyIndexKey</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">keyType</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ValueType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">]</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Packages</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/broadcast.html">broadcast</a>
						<ul>
							<li class="current tsd-kind-namespace tsd-parent-kind-module tsd-is-not-exported">
								<a href="../modules/broadcast.__global.html">__global</a>
								<ul>
									<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/broadcast.__global.broadcast.html">broadcast</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/c3d_comp_template.html">c3d-<wbr>comp-<wbr>template</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/c3daxios.html">c3daxios</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/cli.html">cli</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/core.html">core</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/display_ctrl.html">display-<wbr>ctrl</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_c3d.html">dpctrl-<wbr>c3d</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_ccc.html">dpctrl-<wbr>ccc</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_fgui.html">dpctrl-<wbr>fgui</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/dpctrl_fguicc.html">dpctrl-<wbr>fguicc</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/egf_protobuf_cli.html">egf-<wbr>protobuf-<wbr>cli</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/emitter3.html">emitter3</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/enet.html">enet</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/enet_pbws.html">enet-<wbr>pbws</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/enet_pinus_pb.html">enet-<wbr>pinus-<wbr>pb</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/excel2all.html">excel2all</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/layer.html">layer</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/obj_pool.html">obj-<wbr>pool</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="../modules/xstate2c3d.html">xstate2c3d</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-namespace tsd-parent-kind-namespace">
						<a href="../modules/broadcast.__global.broadcast.html" class="tsd-kind-icon">broadcast</a>
						<ul>
							<li class="current tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="broadcast.__global.broadcast.ibroadcast.html" class="tsd-kind-icon">IBroadcast</a>
								<ul>
									<li class=" tsd-kind-property tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#keys" class="tsd-kind-icon">keys</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="broadcast.__global.broadcast.ibroadcast.html#broadcast" class="tsd-kind-icon">broadcast</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#dispose" class="tsd-kind-icon">dispose</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#has" class="tsd-kind-icon">has</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#off" class="tsd-kind-icon">off</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#offall" class="tsd-kind-icon">off<wbr>All</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface">
										<a href="broadcast.__global.broadcast.ibroadcast.html#offallbycontext" class="tsd-kind-icon">off<wbr>All<wbr>ByContext</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="broadcast.__global.broadcast.ibroadcast.html#on" class="tsd-kind-icon">on</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="broadcast.__global.broadcast.ibroadcast.html#stickybroadcast" class="tsd-kind-icon">sticky<wbr>Broadcast</a>
									</li>
									<li class=" tsd-kind-method tsd-parent-kind-interface tsd-has-type-parameter">
										<a href="broadcast.__global.broadcast.ibroadcast.html#value" class="tsd-kind-icon">value</a>
									</li>
								</ul>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="broadcast.__global.broadcast.ilistenerhandler.html" class="tsd-kind-icon">IListener<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="broadcast.__global.broadcast.imsgkey.html" class="tsd-kind-icon">IMsg<wbr>Key</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="broadcast.__global.broadcast.imsgvaluetype.html" class="tsd-kind-icon">IMsg<wbr>Value<wbr>Type</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="broadcast.__global.broadcast.iresulttype.html" class="tsd-kind-icon">IResult<wbr>Type</a>
							</li>
							<li class=" tsd-kind-interface tsd-parent-kind-namespace">
								<a href="broadcast.__global.broadcast.istickyhandler.html" class="tsd-kind-icon">ISticky<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="../modules/broadcast.__global.broadcast.html#listener" class="tsd-kind-icon">Listener</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="../modules/broadcast.__global.broadcast.html#resultcallback" class="tsd-kind-icon">Result<wbr>Call<wbr>Back</a>
							</li>
							<li class=" tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter">
								<a href="../modules/broadcast.__global.broadcast.html#toanyindexkey" class="tsd-kind-icon">To<wbr>Any<wbr>Index<wbr>Key</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>